//
//  NSString+File.h
//  框架
//
//  Created by mayanwei on 14-9-5.
//  Copyright (c) 2014年 mayanwei. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (File)

+ (void)createDirectoryAtPath:(NSString *)path;

+ (NSString *)userDomainPathForDirectory:(NSSearchPathDirectory)searchPathDirectory pathComponent:(NSString *)pathComponent;

+ (NSString *)documentDirectory;
+ (NSString *)documentDirectoryByAppendingPathComponent:(NSString *)pathComponent;

+ (NSString *)cacheDirectory;
+ (NSString *)cacheDirectoryByAppendingPathComponent:(NSString *)pathComponent;

+ (NSString *)temporaryDirectory;
+ (NSString *)temporaryDirectoryByAppendingPathComponent:(NSString *)pathComponent;

@end
